<extend name="common:base" />
<block name="content">
	<div id="header">
		<div class="header">
			<h1 class="tit">{$site_title}</h1>
			<!--<p class="goback">-->
				<!--<a class="return" href="{:U('Recharge/rechargecenter')}">返回</a>-->
			<!--</p>-->
		</div>
	</div>
		<link rel="stylesheet" href="{:C('__STATIC__')}{$theme}/Static/{:C('css')}/xfjl.css" />
		<div class="banx-a">
			<div class="one">
				<div class="ss">
					<form class="Huiform" method="get" action="" >
						<input type="text" placeholder="请输入订单号..." value="{$_GET['consumeinfo']}" class="input-text"  name="consumeinfo"/>
						<input type="hidden" name="m" value="home"/>
						<input type="hidden" name="c" value="recharge"/>
						<input type="hidden" name="a" value="consumerecord"/>
						<button class="tj" type="submit"></button>
					</form>
				</div>
			</div>
		    <div class="two">
		    	<ul class="gone">
					<notempty name="consumerecord">
					<volist name="consumerecord" id="consumerecord" >
						<li>
							<div class="lip">
								<span class="lip-first">{$consumerecord['order_id']}</span>
								<span class="doll lip-second">{$consumerecord['price']}元</span>
							</div>
							<div class="lipb">
								<if condition="$consumerecord['is_pay'] eq 1">
									<span>已付款</span>
								</if>
								<span class="pay">{$consumerecord['time']|date="Y-m-d H:i:s",###}</span>
							</div>
						</li>
					</volist>
						<else/>
						<div class="no_data">
							<img src="{:C('__STATIC__')}{$theme}/Static/img/no_data.png" class="tip_img"/>
							<p class="tip_txt">暂时没有相关信息</p>
						</div>
					</notempty>
		    	</ul>

		    </div>

		</div>
	<div class="dropload-load" id="loading" style="display: none;"><span class="loading"></span>加载中...</div>
</block>
<block name="JS">
	<script type="text/javascript">
//        $(".tj").click(function () {
//            var msg = $(".input-text").val();
//            if(!msg){
//                layer.msg("请填写搜索条件");
//                return false;
//            }
//        });
        /**
         * 继续加载猜您喜欢
         * */
        var before_request = 1; // 上一次请求是否已经有返回来, 有才可以进行下一次请求
        var page = 1;

        function ajax_sourch_submit() {
            if (before_request == 0)// 上一次请求没回来 不进行下一次请求
                return false;
            before_request = 0;
            page++;
            $.ajax({
                url: "{:U('Recharge/moreconsume')}",
                type: "post",
                data: {
                    params : "{$params}",
                    page: page
                },
                beforeSend:function() {
                    $('#loading').show();
                },
                success: function (msg) {
                    $('#loading').show();
                    if (msg != 1) {
                        $('.gone').append(msg);
                        before_request = 1;
                    } else {
                        $('#loading').text('没有更多的数据！');
                    }
                }
            });
        }
	</script>
</block>